from django.urls import path

from server.apps.blog.views import PostShowView, CreatePostView, PostDetailShowView, PostDeleteView, PostEditView, MyPostShowView

app_name = 'blog'

urlpatterns = [
    path('create/', CreatePostView.as_view(), name='create'),
    path('edit/<int:pk>/', PostEditView.as_view(), name='edit'),
    path('view/<int:pk>/', PostDetailShowView.as_view(), name='detail'),
    path('delete/<int:pk>/', PostDeleteView.as_view(), name='delete'),
    path('', PostShowView.as_view(), name='list'),
    path('my_posts/', MyPostShowView.as_view(), name='my_list'),
]
